﻿<%@ Page Title="" Language="C#" Theme = "DetailsView"MasterPageFile="~/Managers.master" AutoEventWireup="true" CodeFile="MRepairsFinish.aspx.cs" Inherits="MRepairsFinish" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:DetailsView 
         ID = "dtlRepairs"
         DataSourceID = "srcRepairsUnfinish"
         AllowPaging = "true"
         SkinID = "Colorful"
         AutoGenerateRows = "false"
         EmptyDataText = "没有要处理的报修"
         HeaderText = "报修信息的历史记录"
         runat = "server" >
         <Fields>
         <asp:BoundField 
             DataField = "sname"
             HeaderText = "姓名" />
         <asp:BoundField 
             DataField = "b_n"
             HeaderText = "楼房" />
         <asp:BoundField 
             DataField = "d_n"
             HeaderText = "宿舍号" />
         <asp:BoundField 
             DataField = "thingsname"
             HeaderText = "报修物品" /> 
         <asp:BoundField 
             DataField = "repairstime"
             HeaderText = "报修时间" />
         <asp:BoundField 
             DataField = "finishtime"
             HeaderText = "完成时间" />               
         </Fields>
    </asp:DetailsView>
    <asp:SqlDataSource 
         ID = "srcRepairsUnfinish"
         ConnectionString = "<%$ConnectionStrings:Dormitory %>"
         SelectCommand = "select *from repairs where finish = 'true'"
         runat = "server" ></asp:SqlDataSource>
</asp:Content>

